from rest_framework.urls import path
from mexam import views
from rest_framework.routers import  SimpleRouter
router = SimpleRouter()
router.register("list", views.book)
router.register("type", views.booktype)
router.register("author", views.author)

urlpatterns = [
    path('loginin/', views.loginin.as_view()),
    path('delete/', views.deleteid.as_view()),
    path('changestatus/', views.changestatus.as_view())
]

urlpatterns += router.urls
